package com.qywx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qywx.entity.PhotoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Component;

import java.io.FileInputStream;

/**
 * @ClassName PhotoDao
 * @Description: TODO
 * @Author wmj
 * @Date 2020/3/16
 * @Version V1.0
 **/
@Component
@Mapper
public interface PhotoDao extends BaseMapper<PhotoEntity> {

    int saveImage(PhotoEntity photoEntity);

    PhotoEntity readImage(int id);
}
